export default {
  path: '/basic',
  name: 'basic',
  component: () => import('@/layouts/index.vue'),
  meta: {
    requiresAuth: true,
    icon: 'icon-basic',
  },
  children: [
    {
      path: 'dashboard',
      name: 'dashboard',
      component: () => import('@/views/basic/dashboard/index.vue'),
      meta: {
        requiresAuth: true,
        roles: ['*'],
        title: '公告板',
        icon: 'icon-dashboard',
      },
    },
    {
      path: 'doc',
      name: 'doc',
      component: () => import('@/views/basic/doc/index.vue'),
      meta: {
        requiresAuth: true,
        roles: ['admin'],
        title: '文档',
        icon: 'icon-file',
      },
    },
  ],
}
